package com.generate.table;

public class Td {

    /**
     * 必须填入Json字符串
     */
    private String style = "white-space: nowrap;";

    private String title;

    private int colsSpan = 1;

    private int rowSpan = 1;

    public int getColsSpan() {
        return colsSpan;
    }

    public Td setColsSpan(int colsSpan) {
        this.colsSpan = colsSpan;
        return this;
    }

    public int getRowSpan() {
        return rowSpan;
    }

    public Td setRowSpan(int rowSpan) {
        this.rowSpan = rowSpan;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public Td setTitle(String title) {
        this.title = title;
        return this;
    }

    public String getStyle() {
        return style;
    }

    public Td setStyle(String style) {
        this.style = style;
        return this;
    }

    public static Td create(String title){
        Td td = new Td();
        td.setTitle(title);
        return td;
    }
}
